package com.woniu.outlet.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;


@Data
@ApiModel("订单表")
@AllArgsConstructor
@NoArgsConstructor
public class OrderPo {
    @ApiModelProperty(value = "订单id")
    private Long id;
    @JsonProperty("orderNo")
    @ApiModelProperty(value = "订单编号")
    private String orderNo;

    @JsonProperty("customerId")
    @ApiModelProperty(value = "客户id")
    private Long customerId;

    @JsonProperty("orderStatus")
    @ApiModelProperty(value = "订单状态")
    private String orderStatus;

    @JsonProperty("orderCreater")
    @ApiModelProperty(value = "订单创建人")
    private String orderCreater;

    @JsonProperty("orderRevise")
    @ApiModelProperty(value = "订单修改人")
    private String orderRevise;

    @JsonProperty("createDate")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createDate;

    @JsonProperty("modifyDate")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改日期")
    private Date modifyDate;

    @JsonProperty("endDate")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "完成日期")
    private Date endDate;

    @JsonProperty("expiryDate")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "截止日期")
    private Date expiryDate;

    @JsonProperty("overdueStatus")
    @ApiModelProperty(value = "逾期状态")
    private String overdueStatus;

    @JsonProperty("orderDeposit")
    @ApiModelProperty(value = "订单金额")
    private Long orderDeposit;

    @ApiModelProperty(value = "备用字段2",hidden = true)
    private String spare2;
    @ApiModelProperty(value = "备用字段3",hidden = true)
    private String spare3;
    @ApiModelProperty(value = "备用字段4",hidden = true)
    private String spare4;

//    private List<OrderDetails> orderDetailsList;
    @ApiModelProperty(value = "客户名",hidden = true)
    private String customerName;
    @ApiModelProperty(value = "产品id",hidden = true)
    private Long productId;
    @ApiModelProperty(value = "产品名",hidden = true)
    private String productName;
    @ApiModelProperty(value = "产品数量",hidden = true)
    private Long num;
    @ApiModelProperty(value = "规格型号",hidden = true)
    private String specificationModel;

}